package com.lkd.controller;


import com.lkd.service.RoleService;
import com.lkd.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 用户角色表 前端控制器
 * </p>
 *
 * @author 聂德祥
 * @since 2024-08-17
 */
@RestController
public class RoleController {
    @Autowired
    private RoleService roleService;
    @GetMapping("/api/user-service/role")
    public Result findAll(){
        return Result.success(roleService.list());
    }


}
